fastCSharp.LoadViewType(diantou.examQuestion=function(Value)
	{
	fastCSharp.Copy(this,Value);
	this.Path={
		RadioEdit:'/enterprise/singleEdit.html#!questionId='+this.Id,
		MultipleChoiceEdit:'/enterprise/mutiEdit.html#!questionId='+this.Id,
		QuestionEdit:'/enterprise/qaEdit.html#!questionId='+this.Id
		};
	this.IsShowAnswer=0;
	});
diantou.examQuestion.prototype={
ClientAutoShowTime:function()	{	return this.AutoShowTime.ToInt()==(1900<<9)+(1<<5)+1?'':this.AutoShowTime.ToSecondString();	},
IsAutoShowTime:function()	{	return this.AutoShowTime.ToInt()!=(1900<<9)+(1<<5)+1;	},
GetAnswers:function()
	{
	return this.Answers.Value||this.Answers;
	},
RadioAnswers:function()
	{
	if(!this.RadioAnswerArray)
		{
		this.RadioAnswerArray=[];
		this.IsUserAnswer=this.UserAnswer();
		for(var Answers=this.GetAnswers(),Index=0;Index-Answers.length;++Index)	this.RadioAnswerArray.push({Content:Answers[Index],Index:Index,IsAnswer:this.Answer==Index,IsUserAnswer:this.IsUserAnswer&&(this.IsUserAnswer.Answer==Index)?1:0});
		if(this.IsUserAnswer)	this.IsRight=this.IsUserAnswer.Answer==this.Answer;
		}
	return this.RadioAnswerArray;
	},
MultipleAnswers:function()
	{
	if(!this.MultipleAnswerArray)
		{
		this.MultipleAnswerArray=[];
		this.IsUserAnswer=this.UserAnswer();
		for(var Answers=this.GetAnswers(),UserAnswerArray=this.IsUserAnswer?this.IsUserAnswer.Content.split(','):[],UserAnswerHash=UserAnswerArray.ToHash(),AnswerIndexs=this.AnswerContent?this.AnswerContent.split(','):[],AnswerHash=AnswerIndexs.ToHash(),Index=0;Index-Answers.length;++Index)	this.MultipleAnswerArray.push({Content:Answers[Index],Index:Index,IsAnswer:AnswerHash[Index.toString()]!=null,IsUserAnswer:UserAnswerHash[Index.toString()]!=null});
		if(this.IsUserAnswer&&(this.IsAnyRight=this.IsUserAnswer.Point))	this.IsRight=this.IsAnyRight==(this.Point||10);
		}
	return this.MultipleAnswerArray;
	},
UserAnswer:function()
	{
	var User=fastCSharp.PageView.SkinValue.SkinValue.user;
	if(User&&User.Remote&&User.Remote.Answers)
		{
		for(var Answers=User.Remote.Answers,Index=Answers.length;Index;)
			{
			var Answer=Answers[--Index];
			if(Answer.Type==this.Type&&Answer.QuestionId==this.Id)
				{
				if(this.Type=='Radio'&&this.IsRight)	Answer.Point=5;
				return Answer;
				}
			}
		}
	},
PointPercentage:function()
	{
	var Answer=this.UserAnswer();
	if(Answer&&this.Point)	return Answer.Point*100/this.Point;
	return 0;
	}
		};